<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 - 基于SpringBoot的社区问答系统</title>
    <link th:href="@{lib/layui/css/layui.css}" rel="stylesheet">
    <script th:src="@{lib/layui/layui.js}"></script>
    <script th:src="@{js/login.js}"></script>
    <style>
        html,
        body,
        #login-form {
            height: 100%;
        }
        #login-form {
            align-content: center;
        }
        .login-container {
            max-width: 24rem;
            padding: 1rem;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<form id="login-form" class="layui-form">
    <div class="login-container">
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-username"></i>
                </div>
                <input type="text" name="username" value="" lay-verify="required" placeholder="用户名" lay-reqtext="请填写用户名" autocomplete="off" class="layui-input" lay-affix="clear">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-password"></i>
                </div>
                <input type="password" name="password" value="" lay-verify="required" placeholder="密   码" lay-reqtext="请填写密码" autocomplete="off" class="layui-input" lay-affix="eye">
            </div>
        </div>

        <div class="layui-form-item">
            <a href="javascript:" lay-on="forget-register">忘记密码</a>
            <a href="javascript:" style="float: right" lay-on="forget-register">注册帐号</a>
        </div>
        <div class="layui-form-item" style="margin-bottom: 0">
            <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="login">登录</button>
        </div>
    </div>
</form>

</body>
</html>